import json
from config import BaseDir


# 定义读取json文件中的测试数据的函数
def read_json_data(file):
    with open(BaseDir + file, mode="r", encoding='utf-8') as f:
        file = json.load(f)
    data_list = []
    for item in file:
        tmp = tuple(item.values())
        data_list.append(tmp)
    return data_list


if __name__ == '__main__':
    print(read_json_data("/data/ihrm_add.json"))
